execute if score stream_type system matches 2 store result storage vs:system temp.value int 0.4 run function vs:system/game/rules/get_value {index:{id:"void_ore_spawn_count"}}
execute if score stream_type system matches 3 store result storage vs:system temp.value int 0.4 run function vs:system/game/rules/get_value {index:{id:"void_ore_spawn_count"}}
execute if score stream_type system matches 4 store result storage vs:system temp.value int 0.8 run function vs:system/game/rules/get_value {index:{id:"void_ore_spawn_count"}}
execute store result score #voidOreSpawnCount temp run data get storage vs:system temp.value
data remove storage vs:system temp.value
execute if score stream_type system matches 1 store result score #voidOreSpawnCount temp run function vs:system/game/rules/get_value {index:{id:"void_ore_spawn_count"}}

function vs:system/game_ctrol/void_ore_spawner/spawn/summon_markers
scoreboard players reset #voidOreSpawnCount temp

execute as @e[tag=voidOrePlaceMarker,type=marker] at @s if block ~ ~-1 ~ #vs:base_blocks run kill @s

execute as @e[tag=voidOrePlaceMarker,type=marker,distance=..300] at @s run function vs:system/game_ctrol/void_ore_spawner/spawn/place_ore